﻿#region Usings

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Windows.Data; 

#endregion

namespace Gonte.Wpf.Controls.Converters
{
    public class ImageConverter
        : IValueConverter
    {
        public ImageConverter(Dictionary<String, String> images)
        {
            images_ = images;
        }

        #region IValueConverter Members

        public Object Convert(Object value, Type targetType, Object parameter, CultureInfo culture)
        {
            return images_[value.ToString()];
        }

        public Object ConvertBack(Object value, Type targetType, Object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion

        protected readonly Dictionary<String, String> images_;
    }
}
